package com.hch.maker;

import com.hch.maker.cli.CommandExecutor;
import com.hch.maker.generator.MainGenerate;
import freemarker.template.TemplateException;

import java.io.IOException;

public class Main {

    public static void main(String[] args) {
//        args = new String[]{"generate","-l","-a","-o"};
////        args = new String[]{"generate","list"};
//        CommandExecutor commandExecutor = new CommandExecutor();
//        commandExecutor.doExecute(args);

        MainGenerate mainGenerate = new MainGenerate();
        try {
            mainGenerate.doGenerate();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } catch (TemplateException e) {
            throw new RuntimeException(e);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}